Make plugin work when there is no origin remote

The doc plugin no longer errors when there is no origin remote.