Catch XPathTypeMistachExceptions in progress bar updating