Fix assertion - open() can return "0", which is a valid file descriptor.
Merge pull request #1782 from tklein23/develop

Fix assertion - open() can return "0", which is a valid file descriptor.