Helper function to test if HTML node is empty.