message: Don't pass undefined sockets to ipc.server.emit()
  Changelog-entry: Don't pass undefined sockets to ipc.server.emit()
  Change-type: patch
diff: @@ -392,7 +392,10 @@ exports.cancel = () => {
  try {
  const [ socket ] = ipc.server.sockets
  + // eslint-disable-next-line no-undefined
  + if (socket !== undefined) {
  ipc.server.emit(socket, 'cancel')
  + }
  } catch (error) {
  analytics.logException(error)
  }
  