Don't send invalid titles from the link inspector to the API

Bug: 66135
Bug: 66139
Change-Id: I616484b44efa1923017a7cb197c5d657f0f12f8c
Merge "Don't send invalid titles from the link inspector to the API"