Each vault query always returns a Vault.Page object.
While performing a sum query, the result of the sum is accessible via Vault.Page.getOtherResults() and not via Vault.Page.getStates().
What is the reason behind this? The sum query doesn't return any actual states, but rather returns the result of a computation of these states.