node-gyp disables C++ exeptions, presumably for performance reasons, so we
have to enable those ourselves. I'm unsure why but catching Exiv2::AnyError
is no longer sufficient to handle invalid file paths. Switching to its
parent class std::exception resolved the problem and seems reasonable since
we're not using AnyError's functionality.