Fixed wrong return value in FileIO::size()

Fixes #2203