Check for NULL before traversing the isa<> type hierarchy checking with a