Check for <img> alongside textContent to determine whether a node is empty