Fixed NPE when expiresOnDate is null.