Logarithmic corrections to the entropy function of black holes in the open ensemble