Fixed EntityIndexingStrategy when non entity is given.

EntityIndexingStrategy throwed an Exception when non entity was given. 
```
$class = get_class($object);
$em = $this->registry->getManagerForClass($class);
```
``$em`` is not set, so exception is throwed.

Because of that it was impossible to use datagrid with arbitrary objects (like anonymous objects fetched by PDO).