Rule evaluation might fail when debug logging is turned on

When DEBUG logging is turned on on the RuleEngine, an error might occur if DefaultLookup is specified on an entity field. This error is caused by trying to write the human readable name of the value into the log. When loading of the looked up value fails, the rule evaluation fails, too. It is not clear that it is only the logging function that has failed.