Fail better when accessing registry with nil key
Add tests for instance path, clarify error message