Don't attempt to parse an empty document to avoid errors.

Don't attempt to parse an empty document to avoid errors. Returns an empty 'items' array on empty documents instead.