Attenuation of the fourth sound in liquid helium II via extended thermodynamics