Fixes a recursion issue. refs #5160