[PATCH 5.4 79/81] i40e: fix validation of VF state in get resources