hid/tests: Fix out-of-bound use of nodes in test_device_info. HidP_GetLinkCollectionNodes can returns a larger nodes_count than the capacity of nodes.