Perhaps the goombas just didn't notice it? If they were smart, they'd learn to avoid walking straight in to bottomless pits.
Also, do you guys know why he waited to get the star? Was that glitch at the end of the stage caused by the fact that he still had starman?