[FrameworkBundle] fixed regression where the command might have the wrong container if the application is reused several times