Fix, to allow batchDelete

Hi,
Batch delete was causing a 
``
FatalErrorException: Error: Cannot use object of type Application\Sonata\MediaBundle\Document\Media as array
``
before this.
Thanks !
Merge pull request #395 from Azer-/patch-1

Fix, to allow batchDelete