- don't try to access xdo until after we verify it's not null. (#18,
  reported by zarelit)