Noise robustness condition for chaotic maps with piecewise constant invariant density