Make sure $app['locale'] stays set. Fixes #1405.