send event action as string "undefined" when action is not defined

use single quotes