made missing document ID in get_doc non-fatal and added shorter way of calling get_doc