handle it better when the URL doesnt have any query params

git-svn-id: http://svn.krangcms.com/trunk/krang@6908 689d98c0-9023-0410-9c0b-f79783857903