Fixed case when res is None

Fixed case when res is None:
```
#012 File "/var/buildout-plone4/src/collective.traceview/src/collective/traceview/patches/catalog.py", line 5, in extract_count
#012 return {'Count': len(res)}
#012 TypeError: object of type 'NoneType' has no len()
```