Fix failing assert in `weechat-reset-buffer-modified'

Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>