Check for UIAElementNil before looking up child elements