added check for fas media url before http->https switch