Added patch for filtering out empty results.