Fix issue where msgexport.sh printed the message to STDOUT instead of a file (#1489634)
Prevent from "Call to undefined method rcmail_output_json::add_footer()" error