getStreamHandler() returns filtered handler that copy args.

This is to safe guard args that get forwarded to input handler
from accidentally modifying the shared args and cause unexpected
behavior to the caller.