Well I build storage facilities in the early game so my strategies are different
. I hate to waste that early production. I build spaceyards on 99% of my planets build heavily and almost never run out of resources because of this.
But back to the question at hand. I think some changes in the text files improve this problem it may not get rid of it completely untill we can use numbers below 100 to set the planet types but for now you can limit the Mineral miner types to 101 minerals. Just remember to set a catch all type of planet at the bottom of each AI state. You will still see some miners in bad planets because the other types of planets like Military also build some miners if space allows.