Yes, patching the bug would require a copy of TemplateParserImpl (71 lines) and SaxTemplateParser (1197 lines)
The great thing about tapestry / tapestry IOC is that you can workaround a bug like until a fix is provided in a later release. Much better than rebuilding a custom version of tapestry from tweaked sources IMHO.