On the compactness of weak solutions to the Navier–Stokes–Korteweg equations for capillary fluids