Issue #2219095: Invalid node ref when deleting orphans

Fixing Drupal bug #2219095: Invalid node ref when deleting orphan
cmis_sync_nodes

Prevents '02170849 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/cmis/queries.post.cmisquery.js': 02170848 Invalid node ref - does not contain forwards slash:' server errors