Fixed undefined error
Merge branch 'master' of github.com:mantidproject/autoreduce