Restore to raise KeyError when pipeline was not found