do not delete _NET_WM_STATE, just empty it

 _NET_WM_STATE must be set on all managed windows whether
 it contains any atoms or not.