Same thing happens to me. Happens frequently enough that I don't feel safe using this script anymore.
I'm using the script to powermine Iron Ore with the selection tool. 2 rocks at an undisclosed location. After the 2nd rock gets mined it attempts to mine the first rock again when its empty rather than waiting.