Make sure the class matching the filename exists after loading the file.