Fixed NPE for primitives when ConfigurationProvider returns null.
Returns 0 defaults.