Fix NPE when pasting in a closed remote terminal