Fix EZP-20659: Server error when applying watermark in image editor