Template compilation bug on tag DEFINE

Template in ACP failed with "[phpBB Debug] PHP Notice: in file /includes/functions_template.php on line 609: Undefined offset: 0" where template cache directory is not exist. Mistake in code.