On the distribution of the time to first emptiness of a store with stochastic input