Check for attr presence on Domain using hasattr

If we check for attr using 'attr in cls.__dict__' we won't be considering
attrs defined on parent classes and thus, killing inheritance.

Change-Id: I902bcf305805b7fe48a9b702aaf150e14787d343