Update IndexRepository.php
Update IndexRepository.php

When `$entity` is NULL, the code is broken because the code tries to execute `new ReflectionClass(null)`. This simple if fixes this
whatwedo/SearchBundle