Fix remote publishing
Conflicts resolved
Fixed again publishEndpoint API
Merge pull request #1910 from dotCMS/issue-1869-remote-publish-no-endpoints

Issue 1869 remote publish no endpoints