Fixes problem in login twig template crashing on production