[bugfix] crash when looking for a non-existing registry key.