[owasp] Fix index error when no allowed methods.