Editor: Fixed Viewport add/remove object handler.
I'm surprised I didn't notice how broken this was until now...