Changed the logic for adding persistent collection logging for only delaying the saving of new entities if it has a null id.