Fix CrashReport #1642 and fix minor crash in openchangeclient