fixed javascript error when course menu block is docked in moodle 2.7