[PATCH 3/5] huaweimodem: add NULL check