Fix Yii1 Module parsing query parameters

The original code attempted to parse parse_url() and parse_str based off $uri before it was initialized. I've simply reordered it.