(MEL) how to prevent empty undo entries?

is there a way to prevent scriptJobs from creating empty undo queue entries?

scriptJob -attributeChange "polyCylinder1.radius"  "setAttr \"polyCylinder1.subdivisionsHeight\" (`rand 1 8`);";

This is just a small scriptJob test which changes the subdivision Height when radius attr changes.

When i run undoInfo -q -pq; I can see a lot of empty entries
// 0: //
// 1: //
// 2: //
// 3: //
// 4: polyCylinder -ch on -o on -r 4.952749 -h 12.609007 -sc 1 -cuv 3 //
// 5: select -af polyCylinder1 //
// 6: //
// 7: setAttr //
// 8: //
// 9: //
// 10: setAttr //
// 11: //
// 12: //
// 13: setAttr //
// 14: //
// 15: //
// 16: setAttr //
// 17: //
// 18: //
// 19: setAttr //
// 20: //
// 21: //
// 22: //
// 23: //
// 24: //
// 25: //
// 26: //
// 27: //
// 28: //
// 29: //
// 30: //
// 31: //
// 32: //
// 33: setAttr //
// 34: //
// 35: //
// 36: //
// 37: //
// 38: //
// 39: //
// 40: //
// 41: //
// 42: //
// 43: //
// 44: //
// 45: //
// 46: //
// 47: setAttr //
// 48: //

Any Ideas?