Fix asset check in Rails engine.