.+surname and .+givenname can sometimes fail with a
pywikibot.data.api.APIError thrown.
If we were in a pure Python context we could nicely catch
those errors.
Currently, from our TCL interpreter, we instead receive a text output.
A callback method is provided to parse this output to print error.
Fixes T1203.