[NEXUS-6496] avoid NPE when handling redirect logic/logging