fix TypeError when sourceContents is already deleted.
Merge pull request #131 from chmontgomery/feature/fix-typeerror

fix TypeError when sourceContents is already deleted