Fix for #7927 : Add a warning message if trying to print a composer

as an image fails (Qt's QImage sanity check mecanism for memory overflow, platform related and malloc)