Fix problem with build in NBS plugin v.0.13.1.
FIx crash when unregister provider.