Absolute energy calibration for relativistic electron beams with pointing instability from a laser-plasma accelerator