try to make htmlunit happy by checking for oas being undefined also