Update routing.py

Fix index out of range unandled exception when request.postpath is an empty list