Fix NPE when connecting with Tesseracts.