Calculator: better guard for no-ops.

The old guard was kinda whacky (and wrong) and inverted all the logic.
So we'll dump out early when we recognize that no operations will be
done.

Intended to fix #728.