moved helper error throwing to the end of file

otherwise it would not upload the error results to qaverify