[ResourceBundle] Don't initialize FlashHelper for API calls

Alternative to #1720.