Fix for lua_ttisnulluserpointer.