Fixed issue where incorrect scope used to call messaging functions in Auto_Finalize_Orders.php job