Made the empty string formatter only catch KeyError and IndexError.