Backport OPENDJ-1567: correct argument order and error checks in newOffsetControl

git-svn-id: https://svn.forgerock.org/opendj/branches/b2.6-sdk@11119 41b1ffd8-f28e-4786-ab96-9950f0a78031