Current fluctuations in the zero-range process with open boundaries