On the energy inequality for weak solutions to the Navier-Stokes equations of compressible fluids on unbounded domains