fix null pointer while looking for super klass match

additional protection for Kotlin isType method to avoid bad call on undefined super klass.