Added some checks to avoid WARNING messages

I've added some checks to avoid having WARNING errors when no summary generated etc. (like it happens with some of the main jobs for multiconfig/matrix jobs)

Tested on jenkins 1.40 and 1.94.