inventory: Fix machines without OS are not counted

Refs #2303