Fix issue where entering a number greater than 2,147,483,647 would throw a server error

Fixes #2695