Check collections_fedora is not empty before sorting it -- fixes the unit-tests