fixed the crash seen on get request with distribution:random

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.