Fix max-age and freshness confusing zero and null.

The two Zero tests currently fail on master.
Since we've said the return type is `int|null`, you don't need to check is_numeric. Just typecast to int.