Fix flash message for Symfony >= 2.1

Fix issue #1