diff --git a/registration-system/view/js/story.js b/registration-system/view/js/story.js
index 5f245c02874ec89503c4ac9c2beb19350175d78d..8f53621a92331649c0e4de77e771db67a28cf1d6 100644
--- a/registration-system/view/js/story.js
+++ b/registration-system/view/js/story.js
@@ -269,7 +269,12 @@ Story.prototype.addFormText = function(parentNode, label, fieldName, x, y)
 	this.form_variables[fieldName] = null;
 }
 
-$(function() {
-	story = new Story($('#storyhead'), $('#storycanvas'), $('#storybox'));
-	story.begin();
+$(function()
+{
+	var storybox = $('#storybox');
+	if (storybox)
+	{
+		story = new Story($('#storyhead'), $('#storycanvas'), storybox);
+		story.begin();
+	}
 });