Fix #7927 : Add a warning message if trying to print a composition
as an image fails (Qt's QImage sanity check for memory overflow)
Moved previous commit from core/qgscomposition to apps/qgscomposer
as QGIS server uses qgscomposition.
Merge pull request #670 from tqhien/master

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