Fix null pointer exception when ChatLib is not installed