Issue #2303361 by tim.plunkett, kim.pepper: Replace instances of deprecated drupal_valid_path with PathValidator.