Compressible hydrodynamic flow of nematic liquid crystals with vacuum