test and implementation for empty collections

Fixes https://github.com/segmentio/metalsmith-collections/issues/7

Trying to use a collection that has no members fails (you only really see this behavior when you start using collections for the first time on a new blog). This has a test and a fix.