Fixed issue of empty string being treated as valid version number