Fix Template::extractPhp and null value