Prevent blank fields from being written when specifying a layout.