Fix EZP-20848: PDOException when using Field criterion with ezxmltext

This PR fixes issue https://jira.ez.no/browse/EZP-20848