[PATCH 4.9 014/171] libertas: fix a potential NULL pointer dereference