Fixes an issue where PB throws an error when the registry is disabled due to the lack of an initialized provider

Fixes an issue where PB throws an error when the registry is disabled due to the lack of an initialized provider