Fixed bug editing a breakpoint/action

Hitting escape to cancel editing would throw an exception if there was
no breakpoint there before