[PATCH 5.1 247/405] rtlwifi: fix a potential NULL pointer dereference