Added check for null thread title