Fix io_find_size_data logic

Following a review an additional issue was found.