The main problem here is that units seem to always have a command and the code only wants to NOT show the cancel command if there are no commands in the units queue. I fixed this now in MG but checking the selected unit command queue and if it ONLY has a stop command then the cancel icon will not show. This only works on individually selected units, i left the code in there to keep the cancel command for multi-selected units for now.
The change was done in rev 1172.