Handle integer overflow while recording calls

Fix for https://github.com/betfair/tornjak/issues/1