Bug #700197 - Critical SQL backend errors when creating customers via python bindings

Patch supplied by the reporter Tom Lofts.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22977 57a11ea4-9604-0410-9ed3-97b8803252fd