Proper null checking in Version constructors.