[PATCH OLK-5.10] gtp: fix a potential NULL pointer dereference