Fixed #171, Check if User header exists before setting