Add a CSS class to elements that are empty or contain only whitespace.