Fixes #1326, fatal error occurs when running Twig in 5.3

In on of the Twig filters was a $this pointer used but in PHP 5.3 $this
is an invalid pointer in a closure. By assigning the routeRenderer
outside the closure and then importing it using a use statement will the
code run again in PHP 5.3