Fix NullPointer exception in resolveHaxeClass().