cfg80211: fix NULL pointer deference in reg_device_remove()