model: Correct test-for-empty in getNearestSymbol

lower_bound returns end() if it's the last entry.