Issue #2619700 by tim.plunkett: \Drupal\Core\Path\PathValidator::getPathAttributes() does not catch MethodNotAllowedException (cherry picked from commit 438713de)