Fix drupal_valid_path() condition