DNN-5733 - Fixed the condition to get the current modules of a tab when Versioning is disabled