Nulls in the data were causing errors, fixed

In the compare function, I was getting errors because left and/or right were null in my data.  Not sure why my setup was different or would cause the issue, but this fixed it for me.