iface: fix potential segfault in iface_notify_data_state