do not reopen content input stream
only close input stream if successfully opened
check for null before closing stream
Merge pull request #138 from drbild/fix-npe-in-contentstreambitmaphunter

Fix npe in contentstreambitmaphunter