Fixed mapping issue if MediaBundle is not installed

Related to [yesterday's PR](https://github.com/sonata-project/SonataClassificationBundle/pull/62), but also required on 2.2 branch.