Fixes #5908 - make sure the dynflow on_init are set before the world being initialized
Merge pull request #4184 from iNecas/5908

Fixes #5908 - make sure the dynflow on_init are set before the world being initialized