fixed NPE when sent session id is null