core: Find bugs fix at manage-domains

Change-Id: Iebad744a40370c970d9462fb628092d9ebed13b0
Signed-off-by: Yair Zaslavsky <yzaslavs@redhat.com>