Fix dynamic caption options not being applied if attach() is called multiple times, such as when BigPipe is enabled.
Closes #3517156