Fixed a bug when a post had no photos