Support running tests through watch - fix AttributeErrors

Hi there!

When running tests through `watch -c`  yanc currently gives `AttributeErrors`:

  ```python
  AttributeError: 'Config' object has no attribute 'stream'
  ```

This patch fixes this by adding more `hasattr`s in `begin` and `finalyze`.

Best,

Allard