Fail gracefully on empty galleries
Merge pull request #2 from kjell/fail-gracefully

Fail gracefully