Prevent from "Call to undefined method rcmail_output_json::add_footer()" error