As image show below,
when getting room side faces and its related side element,
the side element appears “null” while the face is defined by the end of wall.
That’s a quirky one, if there isn’t a quick fix to the component via the Revit API it could be dealt with geometrically. (testing wall geometry to the faces is one way)
How would you like to deal with the condition? unjoining the wall would clear it up, alternatively you could do a collision and then identify the mismatched objects. The grasshopper definition would be slow and not handle all conditions obviously.