added empty kiscourseid code check to kis widget. closes #400