Core commit by Niall: EventHost might be null when button validation is required, so find the event host at that point.
Core commit by Niall: EventHost might be null when button validation is required, so find the event host at that point.

Also changed JS namespace from core to rhubarb.

RhubarbPHP/Module.Leaf,RhubarbPHP/Module.Leaf