Fixes #4974 - make sure puppetmaster is set when updating the repo url