feat(clientsidescripts): better error reporting from testForAngular and waitForAngular