Fix proto registry so that error is returned when target repo is nil
See this fix: a04f1243
The accepted Go convention is that an error should be returned if the returned pointer is nil. This way we don't have to check for nil.
See this fix: a04f1243
The accepted Go convention is that an error should be returned if the returned pointer is nil. This way we don't have to check for nil.