catching exceptions when extracting attachment with solr

The exceptions that sometimes occur when extracting an attachment are
being catched now thus not breaking the indexing any more.