Fix bug where a `number_of_clauses(0)` property would not be returned for declared predicates with no clauses