Fixed bug in the JSON REST API: core/create and core/update, could not reset an external key (0)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2852 a333f486-631f-4898-b8df-5754b55c2be0