Fix selected/checked-attribute generation in ticket template, check for `exists` instead of `id`.
Authored by: cmlenz 2007-04-03
Parent: [r5175]
Child: [r5177]