(Frontend) Fix a NPE in TypeValidator