added None type cpu usage check