Fix for Cuts plugin

- fixed helper routine which gets values along a line.  Now returns NaNs
  for (x, y) indexes outside of the data instead of raising an exception