Bug 831307 - Allow invalid file handles to not crash child processes. r=cjones, a=blocking-tef+