FIX gen_rst.py was something using an undefined variable
Merge pull request #1886 from NelleV/DOX_fix

FIX gen_rst.py was something using an undefined variable