Fixed a bug with the cached registration root ID

Fixed a bug where the cached registration root ID wasn't set.