[#1795] fix for genshi templates