Fix invalid conversion of semver with a null value