Fix state handling in SheetComponent.
Fix state handling in SheetComponent.

stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila,stencila/stencila