fixed bug in callbackInternalLinkMediaForEditor method