[PATCH 4.19 14/43] chtls: Added a check to avoid NULL pointer dereference