Sometimes /proc/stat contain one or more empty line and kstat crash with  undefined method "to_sym" for nil:NilClass error. I just add a check for empty line