Split up LoadBalancer::getReaderIndex() and simplify the code a bit