Fix latent bug in registry save code.

Really small fix.  @peterbourgon @bernerdschaefer