Gt 8 featurewriter patch

This adds a hasNext call before the call to next, which is now required with the move to geotools v8.  Still not quite sure what it should be doing, but just making sure to call it seems to be enough.