Set incoming_links to 0 when all links are removed

Cirrus used to try to not set it.  That doesn't work when you are updating
the document.

Change-Id: I25daa8840f5263f10a03ac8c585dadf6f51889f5
Merge "Set incoming_links to 0 when all links are removed"