halui test: give halui a few seconds to switch the task mode back

When halui finishes an mdi command it switches task back to whatever
mode it was in before the mdi command started, but this can take a
little while.  So dont freak out if it's not already done the first time
we check.

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>