Fixed undefined/null check on testrunnercalbback code