provider: check that provider_type is not NULL in get_for_provider_type()

https://bugzilla.gnome.org/show_bug.cgi?id=696267