Fix error parsing

Use correct namespace when extracting error element.

Thanks @lawrencegripper