Improved the way we manager exception in WebTestCase class

Reviewing the SensioLabs insight report, this is my suggest on how we could handle this kind of exceptions