Fix EZP-21088: Publishing content with API doesn't trigger indexing correctly