Get ticket object from $Object for RT 4.2

In RT 4.2 commit e4edcd64, $Ticket was switched to $Object to
make it more generic and this changed the ARGS passed in the
callback. Update to accept both $Ticket and $Object.