fixed NullPointer in Mapping.asSingleton()

- specifies TypeProvider when provider is not specified