Fix broken check for mydomain attribute.