So what I understand from this error log is that you had a document XWiki.PiwikCode (which contains the registered ui extension) in the wiki message and when you deleted that wiki the ui extension was not properly unregistered. A restart should fix it.
This looks like a bug in the ui extension feature, which version of XWiki is this ?