Fix bug #9087 with crashes on MS-Windows under throw-on-input.