if there is no str in a cdata call we dont want to throw an error by calling .replace() on it
merged with upstream
Merge pull request #13 from jlank/master

Undefined/Null check before calling .replace() on a cdata wrapping