Fixed an exception blackhole in the smart registry

| Q                    | A
| -------------------- | ---
| Bug fix?             | yes
| New feature?         | no
| BC breaks?           | no
| CI currently passes? | yes
| Tests pass?          | yes
| Scenarios pass?      | maybe
| Checkstyle issues?*  | no
| PMD issues?**        | no
| Changelog updated?   | no
| Fixed tickets        |
| Doc PR               |