[Bluetooth TCT] move some assertion checks

Some TCT test cases verify that Web API returns 'undefined'.
In few cases, this check is done in the Web API callback and
so before the Web API has returned 'undefined'.

BUG=XWALK-2090