fixes #7621 - treat a nil minor OS version as empty string

other wise we will forever create operating systems in foreman