hid_parser: get_next_element should return NULL if at end

This fixes the issue for OSX to get the data.