Fix bug for tern adapater when class is not used. See
https://github.com/angelozerr/tern.java/pull/100