mac80211: avoid NULL ptr deref when using WEP