rionet: fix NULL pointer dereference in rionet_remove