fix null pointer access with no file pointer
fix null pointer access with no file pointer

I happen to be working on a system that lacks urandom. While the code does try
to handle this case and artificially create some bytes if the file pointer is
empty, it does try to close it unconditionally, leading to a segfault.

Hailei/redis,HunanTV/redis,darksideofthemoo/redis-histogram,spearhead-ea/redis,jxwr/redis,ttuna/msot-redis,ttuna/msot-redis,MSOpenTech/redis,ramonsnir/redis,darksideofthemoo/redis-histogram,jxwr/redis,splitice/redis,slfs007/mk-redis,jxwr/redis,ksarch-saas/redis,maodeyi/redis_lua,MSOpenTech/redis,ksarch-saas/redis,Hailei/redis,MSOpenTech/redis,MSOpenTech/redis,xuzhezhaozhao/redis_reading,darksideofthemoo/redis-histogram,spearhead-ea/redis,HunanTV/redis,maodeyi/redis_lua,Hailei/redis,ksarch-saas/redis,xuzhezhaozhao/redis_reading,xuzhezhaozhao/redis_reading,splitice/redis,ksarch-saas/redis,ttuna/msot-redis,himoca/redis,slfs007/mk-redis,maodeyi/redis_lua,ramonsnir/redis,slfs007/mk-redis,louisliangjun/redis,ttuna/msot-redis,himoca/redis,Hailei/redis,louisliangjun/redis,louisliangjun/redis,splitice/redis,spearhead-ea/redis,HunanTV/redis,xuzhezhaozhao/redis_reading,louisliangjun/redis,ramonsnir/redis,darksideofthemoo/redis-histogram,himoca/redis,ttuna/msot-redis,HunanTV/redis,splitice/redis,MSOpenTech/redis