documents: handle not-(yet)-uploaded files