Make logic node conversion more stringent when reading database.

Bugfix for misconversion of 'OR' group in updated cyclic ether formation family.