user: Fix variable replacement for %{ticket.user}
Merge pull request #966 from osTicket/issue/960

user: Fix variable replacement for %{ticket.user}

Reviewed-By: Peter Rotich <peter@osticket.com>