Fixing an issue where the URLs were getting added as params to the same url.

This was a bug in the deparam utility. When there were no params
this was returning the url as the param. Fixed by now returning empty
object if there are no params in the url.