Bug1088051 - Fix of stuck in image edit window on clicking edit icon immediately after image delete r=djf

nit: this comment would be more useful it it mentioned why we could ever have imageEditor undefined. There is no obvious reason here why this check is necessary.