Fix exception if onAfterImageSave event not exists in owner