Change has_attr to is None

Change some checks in plugin.py to use 'is None' instead of
has_attr.