Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This particular variable was not being read correctly. Added a test for the behavior. Fixes #15261