Fix onPaste when it is used in a command and multiselect is active

An error is thrown b/c the editor is in virtual selection mode when a command runs with multi select. This fixes the problem.