pyapi internal api code: check for == -1 rather then < 0, for known error returns.


git-svn-id: https://svn.blender.org/svnroot/bf-blender/trunk/blender@53708 954f8c5b-7b00-dc11-b283-0030488c597c