Add some NPE protection in TE read/write. Fix WAILA colors.