Corrected domain_id determination logic in domain_id class

Ref: https://github.com/apmuthu/simpleinvoices/commit/f99beab8cc5115cd099e2dbbc08238ef42e21093