[v4] Only call signalLater if cm exists.

If the document has no `cm` instance attached it results in an error calling `signalLater` without an emitter. This only calls `signalLater` when there is a `cm` instance.