open_istream: remove unneeded check for null pointer