XWIKI-10182: Protect against URL used as extension author which lead to large stack trace in XWiki logs

(cherry picked from commit d019ff17aa74a66d1fbecaa14b0e8b5ba28f1822)