Check for base_class key, only when we actually got an error.
Check for base_class key, only when we actually got an error.

That reduces the amount of checks on correct code. Makes get_userdata checks
slightly faster.

nsf/interlua,nsf/interlua