Fix the way flash messages are set

Since Symfony 2.1 I think.