The HDUV Survey: A revised assessment of the relationship between UV slope and dust attenuation for high-redshift galaxies