No output logged when using `travis_wait` command

This has nothing to do with the use of travis_wait. You are setting the errexit option on the bash:

and this means that any command that exits with a nonzero status will terminate the build immediately.

travis_wait does not have a chance to dump the logs it is collecting.