Prevent information leaks when classes that are extended are not available.