[PATCH 4/5] stemodem: add NULL check