in case of nested states with the top-states having no own exiting transitions Simulink seems to want the top-states during action executed before the sub-states' transitions are tested.
This is different from what is implemented in the code generator right now...