fix nil pointer deref for ErrAccountRepoNotFound
this change just makes sure `repo` is not nil before we try to pull a `Rev` out of it.
assigning the Rev from the repo follows what's *almost* a boilerplate golang error handler, but is sneakily not handling relay.ErrAccountRepoNotFound -- seems the intent is to provide a happy-path response for a common error case.
unfortunately the Rev assignment tried to dereference that unconditionally, so it panicked in the allowed-error path.