In emit_handler() view func, added condition that docType be "item"

This keeps exceptions from happening if a property is dereferenced
on a collection or design document.