fix bug 805182 - Clear calculator appropriately

https://bugzilla.mozilla.org/show_bug.cgi?id=805182