Fixing an issue where we did not check error conditions, resulting in revived threads.

Essentially, if resolveClass or initializeClass return null, they threw an exception, and the caller should back off. I forgot to do this in a few places.