Consider context root redirect when pathInfo is null (#11552)

Change-Id: I752b8de4ff3f7288cc6822bfc5a583caa4f27179