The issue isn't that Tasker becomes confused (or not), the issue is
that when Tasker turns Wifi on for a scan, Android will connect to a
known network if one is available, not knowing that Tasker may turn
Wifi off very soon (unless you have a Wifi On action as part of your
profile). In this situation, when Tasker turns off Wifi, the
transition back to mobile data is not immediate, leaving you with NO
DATA connection for a short time.
The same thing would happen if you manually turned on Wifi and then
turned it off again after a connection had been made.
In the event that you have a single known network, you're likely
turning Wifi on in conjunction with Wifi Near, so this issue doesn't
arise.