Invalid when template file is included

Same as this. Fixed for next version.