Fix case clause error in replicator _scheduler/docs response

When a job is completing, there is a period of time when the document isn't
updated yet with the state, and it's also not present in the scheduler ets
table. In that case we return `nil`, but we don't account for that case in the
_scheduler/docs fabric calls.

To fix it, account for `nil` whenever we get the doc state.
3 files changed