Fix NPE when stopping execution of desire look at nearest.