Fix php warning in WikiaPhotoGallery controller