CLOUDSTACK-5113: temporary fix to return first template in the list