gracefully fail when parsing xml with non-compatible string (TNL-347)

@symbolist 
@waheedahmed 

https://openedx.atlassian.net/browse/TNL-347