Allow writing None values into a Block that contains objects.

Fixes #7939.