Fix bug DNN-4516: check folder read permission in GetUrl method.