Prevent line-set from selecting a line if model has no values

https://www.pivotaltracker.com/s/projects/911874/stories/75030506

If all lines have null values for the closest model then all the lines should be deselected, rather than selecting an arbitrary line as before

Added some extra testing rigour around the methods that do this as well