check whether wsgi.file_wrapper is present in environ before accessing it