Fixing crash where Android node with no children was treated as iOS node