Null out parent reference when child is removed

This was causing me to have bugs - when you remove an entity, the parentEntity pointer should then be null.