Misc (re #1751): added additional checking to invite and dialog instances when terminating the call when media initialization fails due to suspected crash

git-svn-id: http://svn.pjsip.org/repos/pjproject@4856 74dad513-b988-da41-8d7b-12977e46ad98