undefined method `highest_priority?' for nil:NilClass

An ActionView::Template::Error occurred in locations#sidebar_info:

 undefined method `highest_priority?' for nil:NilClass
 app/helpers/modern/maps_helper.rb:85:in `css_for_priority'


-------------------------------
Request:
-------------------------------

 * URL        : https://bikelink.org/maps/locations/167/sidebar_info
 * HTTP Method: GET
 * IP address : 98.35.154.160
 * Parameters : {"controller"=>"modern/maps/locations", "action"=>"sidebar_info", "id"=>"167"}
 * Timestamp  : 2021-05-11 20:45:52 UTC
 * Server : www-3.internal.bikelink.org
   * Rails root : /var/www/bikelink
 * Process: 19508

-------------------------------
Session:
-------------------------------

 * session id: [FILTERED]
 * data: {"session_id"=>"f169557842123fdd385086cbe5547307",
  "warden.user.person.key"=>[[31069], "sTS8Ej46w_WwHcSCjmQv"],
  "_csrf_token"=>"LUg52dyvdHAXimlIbNqeGh2CXSs2OaqV5vgBTm9nokU="}

-------------------------------
Backtrace:
-------------------------------

 app/helpers/modern/maps_helper.rb:85:in `css_for_priority'
 app/views/modern/maps/_location_details.html.slim:51
 app/views/modern/maps/_location_details.html.slim:47
 app/views/modern/maps/locations/sidebar_info.js.erb:2
Reload