IJ1Helper: add defensive programming for EDT

This avoids deadlocks in favor of failing fast, when something
attempts to run a macro directly from the event dispatch thread.