Update MimeDir.php

Sometimes $lastParam is empty, which causes php to emit an error which stops the normal dataflow.
In this case, a popup stating that there was an error during message sending is shown, while actually the message is correctly sent.
This prevents the user from receiving wrong information.