* Fixed ChatSession handling.
* Prevented NPE for getPhaseType().