fix backward compatibility
workaround: on some containers such as CloudBees DEV@cloud, req.getPathInfo() is unexpectedly null, construct pathInfo based on contextPath and requestUri