PLA-119 -- only call offsetGet on doc if doc exists