Fix exception masking after two getVersion() calls
#2816
+355
−48
Closed