Report top level class resolution failure

Rather than the innermost - prevents strange error reporting when
chasing parent classes that have no hope of resoloving.