[PATCH] nm: Guard against divide by zero in error check.