Change Pony.GetAppropriateBehaviorOrCurrent to GetAppropriateBehaviorOrFallback - this fixes an edge case where the current behavior may be null, and thus returning it is not helpful. This can occur in games containing ponies with no behaviors in the any group. The initial search fails and obviously the current behavior has not yet been set. To help deal with this, another check will be done ignoring group restrictions, and failing that one will be chosen at random.