Fallback to empty hash if token_header_names[:user] is nil.
This avoids calling [] on nil.