ExactCalculator: Fix StackOverflowError issue

Calculate e^1209! will trigger the StackOverflowError, which results in
ExactCalculator exit unexpectedly.

Change-Id: Iab080ee98824c213183d5798073365f7de712c63
CRs-Fixed: 1022502
1 file changed