Fix null pointer exception in ClientThread that I introduced previously