Bugfix : when there is no open set anaymode, return null for the next location