Only reset debug-atom if it is empty.