[mms_dispatcher] Beware of tasks with NULL ids

This should fix the recently observed crash in mms_dispatcher_cancel().
Merge pull request #8 from monich/null-task-id

[mms_dispatcher] Beware of tasks with NULL ids