Fix incorrect modification of bytea data when updating rows that contain bytea columns.
Based on the POC patch from ioguix.
This fixes SF Bug # 3243916.