core: Cleanup of GetAllVmTemplatesQuery

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