[core] Fix application context initialization