Fixes a bug in the Learner2D

The Learner2D could be left off in an inconsistent state if the
learner's function errored before the bounds function values
were present in learner.data.