Regularity criterion on energy equality for compressible Cahn‐Hilliard‐Navier‐Stokes equations