Fix EZP-20652: Database error when creating content with the API in PostgreSQL