Allow removing last point while measuring

This PR implements the delete/backspace "undo last point" behaviour for the measure tool (fixing #10176). I'm not sure who is responsible for this area of code - @3nids?