Use edm::convertException::wrap to handle conversion of exceptions

Passing a C++11 lambda to this function allows us to simplify handling the conversion
of exceptions to cms::Exceptions via a reusable function.