Handle 'no storage available' for inline css

Basically wrapping `localStorage` usage in try/catches