Fix logic that checks for mesh and model entities
This fixes a crash that can occur when neither model nor mesh is selected in the AdH export dialog.
This fixes a crash that can occur when neither model nor mesh is selected in the AdH export dialog.