Handle null route path

Signed-off-by: TengChou Yang <threefure@gmail.com>