That explains it, thank you!
There seems to be a bug where if you ask Jimmy to search for the headmaster and then the keys, he doesn't clear the way for the headmasters body, forcing you to restart. Not sure though since I haven't tested it multiple times.