Effect of ring topology in a stochastic model for Z-ring dynamics in bacteria