[Git][ghc/ghc][wip/T27210] Fix assertion check in checkResultTy