ENYO-3553: Fixed missing onError event declaration

Enyo-DCO-1.1-Signed-off-by: Yves Del Medico <yves.del-medico@hp.com>