return 0 if no goal is set when getting action goal