Fixed bug where Batman caused a crash

The destructor function in RenderObject.cpp called it's parent to remove
itself from the parents children. Some RenderObjects don't have parents
(Batman) and so the removeChild function is called from nullptr