fix: Handle case where document title can be NONE
fix: Handle case where document title can be NONE

(cherry picked from commit 9b67fc24bc290789158f37a8f2ce10b505878792)

yashodhank/frappe,yashodhank/frappe,yashodhank/frappe,StrellaGroup/frappe,frappe/frappe,yashodhank/frappe,frappe/frappe,StrellaGroup/frappe,StrellaGroup/frappe,frappe/frappe