Fix bug found when running individual tests against #17217 after merging

See https://github.com/rails/rails/pull/17217#issuecomment-62330945 for discovery.