Avoid NPE if Class does not have a superclass