Let default currency config accept currency without minor unit

Currency as Japanese Yen doesn't have a minor unit, see https://github.com/RubyMoney/money/pull/101

When setting such currency as default, the current implementation will raise NoMethodError since it tries to use the minor unit value.

This fixes that by checking if the unit value is present.