Changed dynamic_predicate_has_clauses to work properly with 0-ary dynamic predicates.
Authored by: tswift 2018-05-11
Parent: [r9285]
Child: [r9287]