core: fix osRepository NPE in AddVmTemplateCommandTest

Change-Id: I68fcd649fa4b97f09f682f23bb5b8524b25b9b8d
Signed-off-by: Arik Hadas <ahadas@redhat.com>