Make Learner.from_file check that the pickle actually contains a Learner.