Allow saving records from invalid state

This PR make's it possible to re try a save on an invalid record. Initial discussion in #1876

Thank's for the tests to @alexspeller !