Support nil queries for amount.