CpuCore: initialize with 0 if value is null or empty

Change-Id: I856a097b4152873f742ea0835a8649c5ed17b66d