Fix for changing math in the math editor does mark the editable area as 'dirty'

This is a fix for bug 248
http://redmine.oerpub.org/issues/248