Allowed empty index parameter in open/close index api

Similarly to what happens with delete index api, curl -XPOST localhost:9200/_open opens now all indices & curl -XPOST localhost:9200/_close closes now all indices.

Closes #4627