Fix bug on Windows, where Get3StateValue() can be unexpected.

I'm getting a return value of 55845584 and can't figure it out. This
commit simply converts the value to None for anything not recognized.