[18.09 backport] daemon: fix mirrors validation Upstream-commit: a43a4ab30ec789a31ee3a14118bf02b7cc54cff0 Component: engine