Fix exception when logging SQL w/ nil binary value.
Merge pull request #14946 from jcoleman/fix-null-binary-column-logging-exception

Fix exception when logging SQL w/ nil binary value.

Conflicts:
	activerecord/CHANGELOG.md
Invert the if/else clause

The case where the value is present is more common