core: don't change the language on internal page_path rewrites.
Fixes #559
(cherry picked from commit ebbda5c5a0ec704646387371f8fb3591466d5143)