Fix traceback when rendering a note when repo is invalid
set web.cfg to defaults