Fix broken termination condition in testTask().

git-svn-id: https://svn.forgerock.org/opendj/branches/opendj3-server-dev@11116 41b1ffd8-f28e-4786-ab96-9950f0a78031