added check of registry key existence if core block was initialized more than once