On a heavy traffic limit theorem for the M/G/1 processor-sharing queue