[Git][ghc/ghc][master] Fix assertion check in checkResultTy