Straightened out the logic to catch null results
Merge pull request #4 from TimTheTerrible/fix_get_int

Straightened out the logic to catch null results