delete-process isn't called unless subshell exists

If subshell doesn't exist, nil is passed to delete-process, and
an error occurs which makes it impossible to kill shell buffer.