TII-169 Clear errorcode whenever lasterror is cleared (merge trunk:r87069)

git-svn-id: https://source.sakaiproject.org/contrib/turnitin/branches/sakai-10.x@87070 fdecad78-55fc-0310-b1b2-d7d25cf747c9