Fix notice when trying to hide node view tab.

#5012