Typewriter: fix broken caching mechanism for the committed state of notes, that was causing wrong commit metadata to be generated when you reverted and continued typing