form template fix when generating form engine

 - The routes file had an extra "end" (invalid syntax) when not using
   the --include-moderation flag