Gracefully handle case when --cache used but there has been no more data. Fixes #20