Fix for exception logging in Datatypes registry.