Fix use of invalidated iterator in the command map on exception
Fix use of invalidated iterator in the command map on exception

The command map can get mutated by command execution, so the iterators
can get invalidated (now that we use our curstom HashMap implementation,
all iterators are potentially invalidated by insert/removal)

danr/kakoune,danr/kakoune,alexherbo2/kakoune,mawww/kakoune,lenormf/kakoune,jkonecny12/kakoune,occivink/kakoune,jjthrash/kakoune,Somasis/kakoune,jjthrash/kakoune,alexherbo2/kakoune,Somasis/kakoune,occivink/kakoune,jkonecny12/kakoune,casimir/kakoune,jjthrash/kakoune,lenormf/kakoune,danr/kakoune,jkonecny12/kakoune,occivink/kakoune,Somasis/kakoune,casimir/kakoune,mawww/kakoune,lenormf/kakoune,alexherbo2/kakoune,mawww/kakoune,casimir/kakoune,jjthrash/kakoune,jkonecny12/kakoune,casimir/kakoune,lenormf/kakoune,danr/kakoune,alexherbo2/kakoune,occivink/kakoune,mawww/kakoune,Somasis/kakoune