Add dummy index range for any empty indices

(cherry picked from commit 28197214e4bebe73b77d0b49f1f185f9149721ee)
Change ClusterStateRequest flags to get metadata

Otherwise we can't get a list of closed indices.

(cherry picked from commit 105f0406a8b940e6097a0bbfdfbc2eb35afb9ace)
Recalculate index ranges after update deflector

(cherry picked from commit 049598d369459408c5e7b2c27db650afac91b0c0)