NEXUS-6701: Dont waste cycles if not needed
To convert response last-modified date if not interested
in it. This also fixes Archiva remote availability detection.
Also, update DateUtils that was deprecated in HC4 to the
NEXUS-6701: Ironing out API changes from master
as cherry-picking brought them in