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

other wise we will forever create operating systems in foreman
Merge pull request #4688 from jlsherrill/KATELLO-2.0

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