Less strict check for empty gallery option

Will otherwise cause entire attachment collection to be in gallery.