Mesh Generation Dialog Closing Fix

Fixes issue where mesh generation dialog would be automatically closed if no geometry was selected.