GetCurrentWebUrl fix (didn't work for root url sites)

There might have been a better solution, but at least it works with root hosted site collections and sites.