Prevent error when View is not assigned yet.
Detach subviews before all views are removed in the Subviews assignment call, otherwise they keep being displayed.