Don't pop calculator if the entry is invalid

In case the entry with the original value is invalid don't even popup the
calculator. It doesn't make sense as it's operations will not work and it also
prevents a lot of tracebacks from being spammed.

Change-Id: I0c4182526b5df62bfba286ac4a840e816b05565f