Wraps the Java spelling API call

As it will return 'null', if there are no spelling mistake to fix.
Avoid logging twice the same stack trace

SafeRunner already log the stack trace. Tweaked the error message to point
to this stack trace.
Merge pull request #863 from skyluc/issue/class-cast-exception-2317

Quick fix exceptions