Fix: Sometimes XML parsing errors were not delivered to main thread.