Handle pjsip_tsx_send_msg failures correctly
Fix assert when third-party register app server URL is malformed
Merge pull request #820 from Metaswitch/issue782

[Reviewer Andy] Handle pjsip_tsx_send_msg failures correctly