Fixed a bug that collapsed duplicate versions.

It would be easier to read if instead of: "date == null || date.length() == 0",
you used: "Strings.isNullOrEmpty(date)"