EZP-20321: Fixed an error when deleting image content