discovery: catch errors during parsing of webfinger profile (refs #378)