Avoid IOOR exception with request to /

Request to / when TreeRoute added with segment template was failing with an Index Out Of Range Exception. Let me know if this doesn't make sense.