Toggle empty rules element when adding or removing rules