Fix for certain cases where request.path were missing the leading slash

In certain cases request.path or request.fullpath lost the leading
slash. This fixes #16926