[FIX] Fixes the route part handler to recognize even empty paths as valid
[FIX] Very minor code cleanup