fix for the bytea/binary nil value bug