Fix transactions do not get rollbacked in saveAssociated/saveMany

Refs #2849