When mergeOptions is called before a view is created or after it's destroyed, don't attempt to create the view. Fixes #6097