diff --git a/js/init.js b/js/init.js
index 84312ebc..def5beb5 100644
--- a/js/init.js
+++ b/js/init.js
@@ -1212,6 +1212,10 @@ KB.prototype.addTopicLinks = function() {
function findCategory(topic_list, id) {
+ if (!topic_list) {
+ return null;
+ }
+
for (var i = 0; i < topic_list.length; i++) {
if (topic_list[i].id == id) {
@@ -1327,7 +1331,7 @@ KB.prototype.generateWCAGLinks = function() {
function wcagLink(match, p1) {
if (!sc_map) {
- return '[WCAG ' + p1 + ' - ' + sc_map[p1].level + ']';
+ return '[WCAG ' + p1 + ']';
}
else {
return '[WCAG ' + p1 + ' - ' + sc_map[p1].level + ']';