Consequences of extreme events on population persistence and evolution of a quantitative trait