fix: guard against nil spec.replicas in deployment analyzer (#1683)