Fix null pointer exception when there are no test dependencies