fixed template parser to use the proper check for open tag
fixed template parser to use the proper check for open tag

lucacervello/Selmer,yogthos/Selmer,seancorfield/Selmer,pbu88/Selmer,tdammers/Selmer,jstaffans/Selmer,cybem/Selmer