Port Fix for Bug 38749 to 1.2.x branch - XSS vulnerability in LookupDispatchAction - reported by Tommy Wareing