Add debugging code for invalid titles in WikiReference
This happens when there is an invalid title (e.g. contains '|'), not
just when it's a red link (non-existent).
I'm not sure if we can do anything about it here, but this will help
track down the bad data, and then how it's getting into flow_wiki_ref.
Plus, minor comment fixes.