Improve argument checking in generate-release-notes script