fix crash when performing an action on a mime part