Error Dialogs bug fix

1) Make sure we get FitPlotter handles only after validating
   data sets.
2) Bunch of helper functions for error checking.