Update index.js

If there are no matching source files for a test then collector.add(...) tries to add an undefined object. since the collector just loops through the keys it should just skip over the supplied empty object from the  || {}.
Merge pull request #28 from ebertsch/master

Update index.js