Fixed UF-151: Exception when removing an active custom panel from the DOM