read: Clear error flag at the end of reading root.