Fix Trac #8028.

Check for an empty list of equations when converting
a closed type family from TH to an HsDecl.