chore(persistence): throw exception on unexpected entity state

related to CAM-1971