Fixed #20169 -- Ensured that the WSGI request's path is correctly assemb...

...led when the `SCRIPT_NAME` has a trailing slash.