fix the crash seen on get request with random distribution

indexes is applicable only with DIST_KETAMA (gets initialized in DIST_KETAMA switch case) and the logic to choose the server from the cluster indexes should be performed only when the pool->dist_type is set to DIST_KETAMA.