When returning to foreground after `onRestart` react context should not be initialised since activity was not destroyed when going to background.