Added checks for not well defined expiration date.