Fix model_local_variable command

The file SW2007_4Forum.mod returns terminate called after throwing an instance of 'DataTree::UnknownLocalVariableException'

See also https://forum.dynare.org/t/tex-output-unwanted-subscript-t/16072

Edited by Johannes Pfeifer