added a check to see if node.source is defined
Merge pull request #122 from josiahsavary/121

added a check to see if node.source is defined