Fix problem witht he persist engine when the object passed to persist is
null