Revert "Fixes that node does not crash with an invalid file handle."

This reverts commit e583c4e2c29c04050819962b3a7675952d6cdc4c.