[PATCH 5.1 094/371] net: hns3: fix for dereferencing before null checking