Fix UserAgent.prototype.getOps method

I need this fix to run tests in https://github.com/share/rest.