More thorough when cleaning up registered commands.
More thorough when cleaning up registered commands.

Fixes #1482

Ventero/greasemonkey,the8472/greasemonkey,Martii/greasemonkey,HasClass0/greasemonkey,Ventero/greasemonkey,Martii/greasemonkey,the8472/greasemonkey,HasClass0/greasemonkey