Added a error check in case a base class spawns without proper data.