Fix template parsing broken by commit 814b087.