OKAPI, prevent javascript error messages during authorization