[PATCH 2/5] libhns: Add input parameter check for hnsdv_query_device()