Fixes crash if view is removed from superview