CS-4873: Fixes error thrown when $translator variable is used in GetURI(...

...) method.