fixed DomainManager.php

Fixed the bug of add empty image entity.
ok , thanks