fix a crash related to wep and mic handling (#1973)