Bug 675436 - Tabs always present when docks shown and absent when docks hidden

The main change is that even with only 1 image in single window mode,
there is now a tab.
Also whatever the number of images when you hide docks with Tab, no tabs
are shown.

(cherry picked from commit 816f651b8277ee9720c52a13f7abd3a074dc82dc)