The stat formula adds 10 to HP and 5 to all other stats, so even a 0 base stat will result in at least 5 points. In order to have a stat be 0, some part of the formula must be negative (which I think is impossible), or the formula must be wrong (which I think is possible only with Shedinja's HP, and that's 1, not 0).

source