Avoid undefined method errors when no sources have been added
Merge pull request #1 from tacitknowledge/fix_nil_sources

Avoid undefined method errors when no sources have been added