Fixed portfolio error if there are no galleries.