TrieIter: Make outputsize check in Next and GetKey consistent

- Previously TrieIterGetKey would return a wrong value if an outputsize of 0 or smaller was provided