Use invoke_hook_list to get around cmodel escaping.
Fix a notice being thrown.
Check if the source_dsid is there before accessing it.
Include just in case.
Merge pull request #32 from jordandukart/7.x-INT-234

7.x int 234