core: Import domain fails with SQL constraint violation exception

Change-Id: Ibf734bf1c9b32b16f2249bc1b0fd94b431d46110
Bug-Url: https://bugzilla.redhat.com/1176430
Signed-off-by: Tal Nisan <tnisan@redhat.com>