Prevent mixing http and https on system uri level, closes #809