Fix request parsing for the base URI

FIx issue with links like /?name=value , where base uri is only /