- Fix a possible NPE when checking supertypes of interfaces. Closes #2176.