allow saving records from invalid state

tests by @alexspeller
Merge pull request #1889 from tchak/invalid-save

Allow saving records from invalid state