forms: Kinda fix clobbering for custom ticket data

If a ticket has multiple forms, and more than one specifies a particular field variable, such as `priority`, the system may crash when rending the ticket-view page. Previously, the last form processed to define a particular field name was used. This patch changes the behavior to use the first.