Reason is optional in abandon and restore changes

When the reason is missing (user didn't type a reason for abandoning in webui), pygerrit crashes because the reason field is missing from the json.