Added correct implementation of isAbstract method for classes.

Change-Id: I868db82ae1a98ab312336454232a2938b53494d9