fix bug where server would crash in case no Agent was specified on the client headers