Throw error for missing provider

This allows supplying the provider in a form and easily catching the error