Fix connection.scan for parallel scan segment 0

A classic "None" error fixed :)