Add check for empty galleries (triggered by haystack indexing search)
Merge pull request #8 from yakky/add_none_check

Add check for empty galleries (triggered by haystack indexing search)