Added backwards compatibility for older versions of mono where monodoc xml did not contain correctly formed xml

Addresses issues in #534