Fix NPE when using event values in formatted slots