In some edge cases, priority may not be set for a ticket

Fixes #40
Merge pull request #51 from greezybacon/issue/null-priority

In some edge cases, priority may not be set for a ticket

Reviewed-By: Peter Rotich <peter@osticket.com>