[Win] Avoid NRE in WinFactory.Dispose()

WinFactory.Dispose() could crash with a NRE when the joystick driver has
not been initialized. Fixed by checking for null before disposing the
input driver.