Issue #3067024 by amateescu, hchonov, plach: Add test coverage for uninstalling revisionable entity types whose code doesn't exist anymore (cherry picked from commit 346d6098)