[JavaScript] Added check to make sure empty null array is not sent to AddOrUpdate files for IProjectContent.