Fix the null pointer exception for some cases in the log with the timeout settings