[PRD-1997] fix filter_nodes emptiness clause