Init the parser if no global data is set

Without doing this the parser will not exist and will pass NULL to
the Twig_Lexer which causes it to fail.