Catch InvalidStateError when live-previewing checkbox change

Fixes #97