{% if navigation %}
  <ul class="navbar-nav mr-auto" role="navigation">
    {% for nav in navigation %}
      <li class="nav-item{% if nav.selected %} active{% endif %}">
        <a class="nav-link" href="{{ nav.link }}" title="{{ nav.navigation_title }}"{% if nav.nofollow %} rel="nofollow"{% endif %}>{{ nav.navigation_title }}</a>
        {% if nav.selected %}{{ nav.children }}{% endif %}
      </li>
    {% endfor %}
  </ul>
{% endif %}

{% if navigation %}
  <ul class="navbar-nav mr-auto">
    {% for nav in navigation %}
      <li class="nav-item{% if nav.selected %} active{% endif %}">
        <a class="nav-link" href="{{ nav.link }}" title="{{ nav.navigation_title }}"{% if nav.nofollow %} rel="nofollow"{% endif %}>{{ nav.navigation_title }}</a>
        {% if nav.selected %}{{ nav.children }}{% endif %}
      </li>
    {% endfor %}
  </ul>
{% endif %}

Remove wrong role navigation that is not valid
Remove wrong role navigation that is not valid