Fix crash in Windows crash handler