At the thought of the failure of her little surprise and of the two and fourpence she had thrown away for nothing she nearly cried outright.
In one sense, I'm thinking how this is one example of Maria losing track of things, which is definitely not who she is. This might spark an intense emotion like the one described here. On the other hand, we know Maria is not well off, and this was a gift that she wanted to give but couldn't and may not be able to easily acquire again.