Swallow bundler exceptions when running tests

Hello,

This is just a tiny patch that avoids useless output when testing stuff related to Bundler in the railties test suite [like this](https://travis-ci.org/rails/rails/jobs/23835396#L1703) since the `Gemfile` points to a non-released version.

Have a nice day.