Fix possible NPE in TribeNodeService

Closes #5643