Handle nonexistent version gracefully

This fixes #5.
Merge pull request #6 from myint/fix

Handle nonexistent version gracefully