[DS-1958] Discovery OutOfMemoryError when indexing Large Bitstreams

In newer versions of Solr, passing InputStreams as values has stopped working. This has caused inconsistent full text indexing in some newer DSpace instances.
Together with Mark Diggory I created a new pull request that will fix the issue for DSpace 4.2 & 5.0 (since these use solr 4).