Fix default value handling
Sometimes ua_version.major and ua_version.minor are nil
Merge pull request #1181 from jordansissel/bugfixes

Bugfixes