Persistency store fails to save object without id or with id === null