As discussed on GH-2024 this is in place because tests are constructing invalid catalogs. A better approach would be to fix the tests to produce correct catalogs and possibly to add an error check here and provide a better error message.