Fix crash if minOSVersion is not provided