Editor - fix issue in which empty node instance throws error.

Editor has a regression in which an error is thrown during the `removeCursor` method when the `cur` argument is not a `node` instance. This addresses that issue.

@ericf @caridy 
This fix is for the 3.18.0 release. Thanks!