Fixed random travis build failure (see https://github.com/rails/rails/issues/14664)