Fix for DFL-2254, Switching from editing style to other tab throws.
Fix for DFL-2254, Switching from editing style to other tab throws.

operasoftware/dragonfly,operasoftware/dragonfly,operasoftware/dragonfly,operasoftware/dragonfly