Closes #6306

Solves an issue where the consoles RouteNotFoundStrategy would throw an exception because an arrays index 0 isn't defined.
Improved logic in RouteNotFoundStrategy and created a testcase
Removed short array syntax
Fixed array mess
Update header
cs fix
Merge pull request #6307 from arekkas/patch-1

Closes #6306 - Console\RouteNotFoundStrategy invalid index
[#6307] Review and assertions

- Added an assertion to the test, and verified that it failed before the
  change.
- Modified the foreach loop to continue if the test fails (do work
  outside of conditions/return early).
Merge branch 'hotfix/6307'

Close #6307