[PATCH 4.14 027/161] libertas: fix a potential NULL pointer dereference