Sanity check for callable check

Make sure the check is callable
Use call_user_func_array when calling user defined function
Merge pull request #1206 from protich/issue/ticket-number-sequence

Sanity check for callable check

Reviewed-By: Jared Hancock <jared@osticket.com>