Add a check to determine if the url has already been formatted. This is necessary for versions of WP > 3.5, which applies preview_post_link to the url created by the post_preview function in core.