Fix a weird bug with failing to find some constructors.
I'm not quite sure why this fixes the bug, but it seems to do so, and it's a good idea anyway.
Avoid calling a method that crashes the JVM.
Avoid crashing if you open the CodeHint preferences page with no active editor.
Note that I still crash badly if you try to do synthesis with no active editor.