Make sure we have a modTemplate object (we still should be able to use "not templated" resources)
Check if template exissts before using it's icon in getNodes processor

* origin/pr/11103:
  Make sure we have a modTemplate object (we still should be able to use "not templated" resources)