Refs #17960 EEA; Fixed multiple upgrade messages displayed in some scenarios

- Add 'is_view_template' condition to KGS availability viewlet template
- Fixed an issue where logging the github api response returned
  an error which stated that you can't mix a string and a response