minor fixes for todo deletion
Rename doc fixes frappe/erpnext#1692
removed print statement
On cancel, check if doc is linked with other docs
catch proper exception
Merge pull request #563 from nabinhait/v4-hotfix

Some fixes