Handle nonexistent version gracefully

This fixes #5.