fixes the issue where a removed the last photo from a set wasn't removing the set from the list of sets.