[PATCH 4.19 100/422] mt76: Fix comparisons with invalid hardware key index