Bayer Leverkusen had Wendell sent off, but recovered to edge in-form Mainz, courtesy of substitute Lucas Alario's stoppage-time strike.