Engine: fixed GUI's name and OnClick handler id usage

Potential access violation case introduced by 3b83e42b4a48d0416336b2ee4ba7884665ec4ca4