Fixed error causing crash when userdata can't be retrieved via unpickle