Fixed error where popular photo tries to render when no photos are present