Refs #13833; AttributeError can be triggered as well not just KeyError