Fix payload.completed? to work with new jenkins version