Fixed a bug with query path mode and permalinks

The main language would display a 404 page when using the plugin's
"Query Variable mode" with pretty Permalinks.