Catch KeyErrors when getting the path of a brain.