Fixed removeGameObject function.

This function should not detach children, only remove them and the
requested GameObject.