NEXUS-5753: UserId detection added
NEXUS-5753: Skimmed down the MDC filter
Added null checks

As the ctx might be null, and
setting null should not happen