show categories if they have records
Merge branch 'master' of https://github.com/GeoNode/geonode