Fix ttl when getMaxAge is equal to 0
Merge pull request #1 from M6Web/fix/ttl-getMaxAge

Fix ttl when getMaxAge is equal to 0