Workaround to avoid exception '$_FILES array is empty' when assigning products to a category or creating a category with the API.