Sanitize wikibase-item html formatting

And don't assume Title == serialization if we don't have
an EntityTitleLookup.

Change-Id: I82b90f8a8cad8f7b65a0c7a26d76611be7fb1f25
Merge "Sanitize wikibase-item html formatting"