Superconductivity without a hole pocket in electron-doped FeSe: Analysis beyond the Migdal-Eliashberg formalism