Call onMissing if doc has no value in the field.

Closes #2807