fix a bug preventing reddest/bluest tasks being identified if no tasks with values less than/greater than zero