Fix regression introduced by patch for Bug#10500.