fixed DomainManager.php

Fixed the bug of add empty image entity.
You should not use FQDN.