Fixed possible null reference exception in solutions exporter (#318)