core: Fix NPE on AddVmFromTemplate

Fix NPE that was thrown when trying to create VM which is defined with
clone template provisioning and based on "latest" template version.

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