fixes previous session id handling for activesync and webdav