allow saving records from invalid state

tests by @alexspeller