Fix a TypeError in InlineAllStyles in Chrome

The first time inlineAllStyles is called, the chartStyle attribute may
be null in Chrome; protect against this so initial chart rendering
works.

Also fixes the indentation formatting of the InlineAllStyles function
for readability.