Current limiting by self magnetic field in a plasma accelerator