KAA-280: Fix invalid buffer usage in kaa event submodule