Check envlist is not null before exporting!