domain: check for empty ids
domain: check for empty ids

https://phabricator.endlessm.com/T19561

endlessm/eos-knowledge-lib,endlessm/eos-knowledge-lib,endlessm/eos-knowledge-lib,endlessm/eos-knowledge-lib