WL-3274 Don't fall on bad style attributes.

If the style attribute didn't contain a semicolon then you get an index out of bounds exception. Now we use a regexp so we don't require a trailing colon.
Fixed typo.
Merge pull request #10 from ox-it/WL-3274

WL-3274 Don't fall on bad style attributes.