URIUtils: fix out of range exception in resolvePath()

This fixes an out of range exception from
```
path.at(i)
```
in the case where the content of path only consists of the delimiter character (e.g. the linux root path "/"). This has been reported in the forum: http://forum.xbmc.org/showthread.php?tid=188031.