Fix crash on solr indexation