Modular classes of regular twisted Poisson structures on Lie algebroids