do not report cascading errors in instanceof operator

fixes #733 
Can you rename this function to `isAnyOrObjectTypeOrTypeParameter`? I think it would be more readable that way.