Nonperturbative vertex corrections for superconductivity in the Frohlich model