prevents error when removing a view that isn't present