Don't do delayed exception-specification checking on an invalid
class. Fixes <rdar://problem/13017229>.