Fix update-bugs.sh script so it doesn't write an empty BUGS file.