Fixed bug causing error when no mime part defined