404 page is wrong on sister projects when path starts with /w/

Bug: 54357
Change-Id: If3d220c26b3e69bd9468fb64c245e5a65a1905b2