diff --git a/files/templates/award_modal.html b/files/templates/award_modal.html
index 1fa32b0d77..9ab22d7051 100644
--- a/files/templates/award_modal.html
+++ b/files/templates/award_modal.html
@@ -3,7 +3,7 @@ function toggle(kind) {
document.getElementById('giveaward').disabled=false;
document.getElementById('kind').value=kind;
var picked = document.getElementsByClassName('picked')
- if (picked !== null) {picked.classList.toggle('picked');}
+ if (picked !== undefined) {picked.classList.toggle('picked');}
document.getElementById(kind).classList.toggle('picked')
}