Fixes missing path information

It fixes the problem with missing path when the connection has no path information but the request has.