Silence warning in test

We still had one file using `column_for_attribute` when it could return
nil, causing deprecation warnings in the tests.
Merge pull request #15894 from sgrif/sg-silence-warning-in-test

Silence warning in test