Fix for symfony 2.1 flash messages looping #978