Fixed exception when global CSRF is set to false

Fixed, as no progress in PR https://github.com/sonata-project/SonataDoctrineORMAdminBundle/pull/193.