Fix a routine compiling endpoints. bugid:110209
Treat "0" as a path item. bugid:110210