provider: Remove unnecessary additional check for NULL provider struct