Handle `capman is None` in `patch_ipdb`

Fixes https://github.com/mverteuil/pytest-ipdb/issues/23