Fixed bug inListSyncManager, that caused the merging of shoppinglistitems and updating of previous_id's to cause some odd states in the DB