Right, nan was only for empty arrays but it is indeed possible to have a scalar with ddof too high.