iaas: fix hostname-to-id mapping when there are more than 100 VMs

useless to make an else statement and return None as it is the default value of a method in python