cleanup: fix code calling open_stream() with NULL options