Fix crash in exception_wrapper::get_exception<>