i2c: Add pointer dereference protection to i2c_match_id()