fixes #5958 When there is an error screen in Piwik (core or in Tracker) then log to error log