Make sure profile is defined
Merge pull request #1395 from geoadmin/gal_fix_prof

Make sure profile is defined