Don't access $_GET directly, ever. Always use a WebRequest object. In this case, you can get one from $out->getRequest().