Fixes a compile error when exporting an exception created with `create_exception!` living in a different Rust module using the `declarative-module` feature.