hw/i2c: Add a NULL check for i2c slave init callbacks