Fix EZP-22761 - 500 Internal Server Error after request #133 from nlescure/patch-1