Oh, crap!
You're totally right, sorry about the oversight. Would you accept this PR if I just add `if (osVersion) { ... }`, to prevent these kind of issues?