wm: fix issue with empty http headers