Added check on cpus object existing before reading it's length

Fix #457