fixed empty element template match
Merge pull request #1 from royalbee/empty-element-match

fixed empty element template match