Apply fix for #104 to r0.7 branch.

  dbtoyaml: fix RuntimeError when using -n option