[DS-2112] fix NPE if org.dspace.app.mediafilter.MediaFilterManager.processBitstream is undefined

Also take a few IDE hints to tidy up the region.
Merge pull request #617 from mwoodiupui/DS-2112

[DS-2112] fix NPE if filter.org.dspace.app.mediafilter.publicPermission is undefined