Fix navigation service registration

delay the resolution of the root frame so that the navigation service can be registered properly