This is likely triggered because of interaction with the form off the EDT. You need to make sure that all invocations to Codename One happen on the EDT.
shouldNavigate is problematic in that regard since by definition it will expose the native browser thread.