Fix ESX dependencies not being checked except for the first one