Check null hierarchy entry, even for wrapped class
It is possible (though rare/inadvisable) for a class to be wrapped by vtkWrapPython even though it was not seen by vtkWrapHierarchy. This fixes a dereferenced null pointer from !7888 (merged), where vtkMPI4PyCommunicator uses this conditional compilation:
#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)