try/catch while parsing innerHTML to prevent crash while parsing incorrect HTML