Only apply monkey-patch if detected to be required
Only apply monkey-patch if detected to be required

We test the failing case we're trying to patch; only if it throws an
Exception do we patch.

Currently this will *always* throw, but upstream Ruby has patched this
bug: https://git.io/vAxKB

Signed-off-by: Ashe Connor <d89d1e1607ca3a85d5a7677b6e385665382717f1@kivikakk.ee>

vipulnsward/rails,arunagw/rails,mechanicles/rails,esparta/rails,georgeclaghorn/rails,BlakeWilliams/rails,Envek/rails,joonyou/rails,printercu/rails,yawboakye/rails,utilum/rails,BlakeWilliams/rails,aditya-kapoor/rails,shioyama/rails,eileencodes/rails,tjschuck/rails,baerjam/rails,shioyama/rails,Edouard-chin/rails,deraru/rails,jeremy/rails,mohitnatoo/rails,tjschuck/rails,untidy-hair/rails,illacceptanything/illacceptanything,yawboakye/rails,repinel/rails,fabianoleittes/rails,palkan/rails,rails/rails,schuetzm/rails,MSP-Greg/rails,betesh/rails,vipulnsward/rails,arunagw/rails,Vasfed/rails,deraru/rails,shioyama/rails,flanger001/rails,gauravtiwari/rails,vipulnsward/rails,joonyou/rails,Edouard-chin/rails,arunagw/rails,deraru/rails,EmmaB/rails-1,yhirano55/rails,eileencodes/rails,mohitnatoo/rails,bogdanvlviv/rails,notapatch/rails,lcreid/rails,prathamesh-sonpatki/rails,esparta/rails,Stellenticket/rails,EmmaB/rails-1,kmcphillips/rails,bogdanvlviv/rails,kddeisz/rails,rails/rails,georgeclaghorn/rails,untidy-hair/rails,illacceptanything/illacceptanything,starknx/rails,yawboakye/rails,lcreid/rails,utilum/rails,yahonda/rails,eileencodes/rails,jeremy/rails,shioyama/rails,lcreid/rails,flanger001/rails,schuetzm/rails,prathamesh-sonpatki/rails,yahonda/rails,iainbeeston/rails,flanger001/rails,tgxworld/rails,Erol/rails,aditya-kapoor/rails,joonyou/rails,illacceptanything/illacceptanything,tgxworld/rails,yalab/rails,eileencodes/rails,repinel/rails,lcreid/rails,illacceptanything/illacceptanything,joonyou/rails,yalab/rails,kddeisz/rails,notapatch/rails,yahonda/rails,travisofthenorth/rails,schuetzm/rails,iainbeeston/rails,Envek/rails,fabianoleittes/rails,illacceptanything/illacceptanything,Vasfed/rails,untidy-hair/rails,gauravtiwari/rails,baerjam/rails,BlakeWilliams/rails,palkan/rails,rafaelfranca/omg-rails,assain/rails,tgxworld/rails,illacceptanything/illacceptanything,betesh/rails,utilum/rails,assain/rails,illacceptanything/illacceptanything,schuetzm/rails,gauravtiwari/rails,kmcphillips/rails,Stellenticket/rails,palkan/rails,kmcphillips/rails,yahonda/rails,pvalena/rails,repinel/rails,iainbeeston/rails,Envek/rails,deraru/rails,mechanicles/rails,prathamesh-sonpatki/rails,arunagw/rails,illacceptanything/illacceptanything,Edouard-chin/rails,jeremy/rails,bogdanvlviv/rails,notapatch/rails,aditya-kapoor/rails,yhirano55/rails,printercu/rails,kddeisz/rails,mechanicles/rails,fabianoleittes/rails,kddeisz/rails,yhirano55/rails,baerjam/rails,betesh/rails,georgeclaghorn/rails,kmcphillips/rails,georgeclaghorn/rails,palkan/rails,starknx/rails,vipulnsward/rails,travisofthenorth/rails,tjschuck/rails,illacceptanything/illacceptanything,tgxworld/rails,esparta/rails,prathamesh-sonpatki/rails,EmmaB/rails-1,rails/rails,illacceptanything/illacceptanything,illacceptanything/illacceptanything,jeremy/rails,aditya-kapoor/rails,Erol/rails,starknx/rails,illacceptanything/illacceptanything,printercu/rails,illacceptanything/illacceptanything,illacceptanything/illacceptanything,MSP-Greg/rails,yalab/rails,printercu/rails,Stellenticket/rails,bogdanvlviv/rails,untidy-hair/rails,pvalena/rails,flanger001/rails,travisofthenorth/rails,Stellenticket/rails,notapatch/rails,yhirano55/rails,assain/rails,Envek/rails,Vasfed/rails,rafaelfranca/omg-rails,pvalena/rails,Vasfed/rails,mohitnatoo/rails,assain/rails,MSP-Greg/rails,tjschuck/rails,Erol/rails,mohitnatoo/rails,esparta/rails,repinel/rails,iainbeeston/rails,betesh/rails,utilum/rails,BlakeWilliams/rails,pvalena/rails,yawboakye/rails,travisofthenorth/rails,rafaelfranca/omg-rails,illacceptanything/illacceptanything,rails/rails,MSP-Greg/rails,yalab/rails,Erol/rails,baerjam/rails,mechanicles/rails,Edouard-chin/rails,fabianoleittes/rails