DNN-5733 - On the one hand, being in VIEW mode, if versioning is enabled but the tab doesn't have  version history, then the tab was never modified under version control. So the modules in database is the right ones for the tab. On the other hand, being also in VIEW mode and versioning enabled, if there isn't a publish version, no modules are shown.