Fixed bug in media plugin where changing existing url did not use media regex patterns to create protocol neutral url