Fixes XXXX ticketid error

Forum post: http://www.osticket.com/forum/discussion/74564/ticket-numbers-showing-xxxxxxx/p1

Still a problem, but now its due to the template itself having a variable that it shouldn't.