Twig: fix getSecurityToken/TokenKey not working

php error is: Using $this when not in object context in <b>/[..]/app/incubator/Mvc/View/Engine/Twig.php</b>