[NAN] TLV utilities iterator - throw correct exception

Make sure that iterator.next() validates that next element exists -
otherwise throw the exception specified by the interface.

Bug: 30096512
Change-Id: I327da433e3f1181e272c81ee503cbe8aab323f7e
(cherry picked from commit 30d5e4a25fc3f484c169031a555e4cc6ecc748ad)
1 file changed
tree: e1678464e9b6daa0ffffc955ac4650bdaf8ecd16
  1. framework/