Fix uncaught version check
Merge pull request #2081 from DaNiwa/crash

Fix uncaught version check