Fix setting view type attribute on Tab
Set nothing if there is no current tab and use the correct attribute to retrieve the current view type.
Closes #13192 (closed)
Set nothing if there is no current tab and use the correct attribute to retrieve the current view type.
Closes #13192 (closed)