"if rails_engine?" needs to be checked before configuration.

I was implementing ember-rails in a mountable engine and "rails g ember:bootstrap" fails because configuration doesn't exists.