Check base_doc, not is_deleted
Check base_doc, not is_deleted

id_deleted() is a property function, not an attribute, so it isn't
present in the JSON representation of a user. We have to check the
value of base_doc to determine whether the user is deleted.

dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq