Avoid inferrer crashes when some entites are not resolved.
This fix avoid the NullPointerException in the behaviour unit generation function, that is occurring when the event's name cannot be resolved.