[Fix #388] Check for 0 in profile tooling