When width1 and width2 are negative the assertion may fail. It seems that adding a negative value to w_curswant won't cause any problems, so just change the assertion.
StatusLine[NC]