Fix the javascript in the pull_request template

This commit fixes the behavior when clicking on the `Add comment` button
while the add comment form is already opened