Docs: Update scripting.asciidoc

Clarify that doc[...] does not return objects

Closes #7384