Made document lookup fault tolerant in case a field is missing from
document