[fix] Ensure title is printed in ValueError
[fix] Ensure title is printed in ValueError

An empty string was printed if initialized from a link or page

Change-Id: I610ee30318a349b8c53666f94ab0b77f1bd18c44

wikimedia/pywikibot-core,wikimedia/pywikibot-core