fixed junit reporting NPE bug for gradle builds