fixes a really subtle bug, that I discovered while wrapping some code in a manual transaction, where data would be lost if a get query failed in a transaction.