wrap query param with isset($uri["query"])

This line throwed a notice when used via Cloudcontrol. Hope this makes sense :)