schema compile FEATURE status checks for deviated definitions

Fixes #1718
diff --git a/src/tree_schema.c b/src/tree_schema.c
index a117e62..5f27502 100644
--- a/src/tree_schema.c
+++ b/src/tree_schema.c
@@ -1161,7 +1161,8 @@
     ly_set_erase(&unres->implementing, NULL);
     ly_set_erase(&unres->creating, NULL);
 
-    assert(!unres->ds_unres.xpath.count);
+    assert(!unres->ds_unres.whens.count);
+    assert(!unres->ds_unres.musts.count);
     assert(!unres->ds_unres.leafrefs.count);
     assert(!unres->ds_unres.disabled_leafrefs.count);
     assert(!unres->ds_unres.dflts.count);