LPS-49296 Prevent NPE if escapeRedirect() returns null because of invalid URL
LPS-49296 Source Formatting