fixes a failing test, also a better way to get the email if available
fixes a failing test, also a better way to get the email if available

fxposter/travis-ci,flores/travis-ci,openeducation/travis-ci,fxposter/travis-ci,flores/travis-ci,openeducation/travis-ci,openeducation/travis-ci,fxposter/travis-ci,flores/travis-ci