Prevent error when the domain is empty.