Added check for conditional route localization to GetVirtualPath.