Fixes issue where module category drop-down will display even if the user does not have access to the modules in that category, what happens is that a category link appears on the drop-down however the drop-down list is empty. This fixes bug #544.