Made WebTestCase compatible with master/slave configuration

Used the code from https://github.com/doctrine/DoctrineBundle/issues/180 (kudo's to @gimler) to fix issue https://github.com/liip/LiipFunctionalTestBundle/issues/96

Fixed a minor booboo I made