Make cookie MaxAge test more specific.

The former implementation could differentiate between MaxAge not being set and MaxAge being set (and sent) to -1.