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