Fix undefined reference variable when unallocating

The id variable was undefined in this context, we need to use
source.data('id').
Merge pull request #997 from bkutil/fix_unallocated_event

Fix undefined reference variable when unallocating