Fixed wrong twig comparison

For issue https://github.com/sonata-project/sandbox/issues/89