Don't fail when attempting to read file size on non file stream. Fixes #50