Update cmis_sync.drupal.inc

Changed code to Drupal standards and fixed array key missing checks