fix for empty sources
Merge pull request #1 from krazyjakee/master

Empty source handling.