Emittance preservation in a plasma-wakefield accelerator