Fix extension bug in InputStream constructor.

Same fix as in https://github.com/bcgit/bc-java/commit/f95c2df7305cf3bf7d1767e52026db031e350e6a