Fixes NPE in the OTR plugin when a chat panel is closed