Fix bug that /restli/docs without a trailing slash will fail.

BUG: SI-1548

RB=316333
BUGS=SI-1548
R=gogenc,kparikh,si-dev
A=gogenc