fixed crash on WIM selection

was looking for direction, as this used to be wired
up to psql queries.

now if there isn't a direction available, just fall back
on the detector_id passed in