fixes #2684
Merge pull request #2694 from dotCMS/issue-2684-remote-publish-popup-parse-error-in-htmlpage-preview

fixes #2684