[FIXED JENKINS-24452] Don't export arbitrary unexportable exceptions