Fix up NIAction's class traversal when resolving actions for a subclass

Fixes up a bug when resolving actions for an instance of a class that doesn't have actions attached to it itself, but has multiple superclasses that do have actions attached.

'[keyClass isSubclassOfClass:superClass]' would always be true, because we only ever set superClass to things that keyClass is a subclass of anyway.