[PATCH 5.10 034/103] chtls: Added a check to avoid NULL pointer dereference