BugFix for AnyState().OnChange(0) null ptr error

When we call eventManager.AnyState(0); without actually adding OnChange
would cause NullReferenceException.
Here is a small patch. :)
Merge branch 'anystate_codegen_patch'
space->tab
Merge pull request #8 from nicekei/master

BugFix for AnyState(0).OnChange() null ptr error