Fix crashes and bugs in NGF ringtone plugin

See each commit for descriptions. The crash came from d->currentCall being used in onVoiceCallStatusChanged, which would dereference null when multiple call handlers existed simultaneously.