fix issue #161

Fix this issue https://github.com/versatica/JsSIP/issues/161.
This patch works by checking if e.currentTarget is defined.