Fix exception on iOS with lastModifiedValue if collection is empty.