[GHC] #12763: Incorrect behavior with empty functional dependencies