fixed stack unbalancing in Userdata::checkClass

There was a case where the checkClass (used by Stack::is_a
and LuaRef::is) would unbalance the stack.