core: minor refactoring in VURTI#removeVmsFromCache

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