Minor optimization fix when updating galleries/folders at the top level
Minor optimization fix when updating galleries/folders at the top level

cmaion/photodeck.lrdevplugin,willthames/photodeck.lrdevplugin